package com.dhcy.mqtt.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@Data
@ApiModel(value = "接收设备数据实体类", reference = "接收设备数据实体类")
public class RevEquipmentData implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "设备数据id", dataType = "Integer ", example = "")
    private Integer id;
    @ApiModelProperty(value = "设备编码", dataType = "String ", example = "")
    private String code;
    @ApiModelProperty(value = "设备名称", dataType = "String ", example = "")
    private String name;
    @ApiModelProperty(value = "设备编号", dataType = "String ", example = "")
    private String number;

    /**
     * 设备状态(氚,中子,伽马 -> 01:正常 02:超阈值;
     * 气溶胶 -> 01:测量中 02:空闲 03:纸少于10% 04:缺纸 05:超阈值),
     */
    @ApiModelProperty(value = "设备状态码", dataType = "String ", example = "")
    private String statusCode;

    @ApiModelProperty(value = "设备状态值", dataType = "String ", example = "")
    private String statusValue;

    @ApiModelProperty(value = "测量值", dataType = "String ", example = "")
    private String value;
    /**
     * 铀浓度(气溶胶参数)
     */
    @ApiModelProperty(value = "铀浓度", dataType = "String ", example = "")
    private String uValue;
    /**
     * 钚浓度(气溶胶参数)
     */
    @ApiModelProperty(value = "钚浓度", dataType = "String ", example = "")
    private String puValue;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间", dataType = "Date ", example = "")
    private Date createTime;

    @ApiModelProperty("是否数据同步")
    @TableField(select = false)
    private Boolean isPush;
}
